package cn.nuofankj.myblog.repository;

import cn.nuofankj.myblog.entity.Tag;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author xifanxiaxue
 * @date 2020-12-20
 * @desc
 */
@Repository
public interface TagRepository extends JpaRepository<Tag, Long> {

    Tag findTagById(String id);

    List<Tag> findAllByStatus(int status);
}
